<div class="my-table">
  <nz-table #basicTable  
  [nzData]="data"  
  [nzFrontPagination]='false' 
  [nzHideOnSinglePage]='true' 
  (nzPageIndexChange)="changePage($event,page)" >
    <!--   -->
      <thead>
        <tr >
            <!-- <th
            > 选择</th> -->
            <th  *ngFor="let item of titleData;let i = index;">{{item.name}}</th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let item of data" [ngStyle]="{'color': item.isJy === '是' ? 'red' : '' }" >
          <td *ngFor="let leb of titleData" >
            <div *ngIf="leb.key != 'cz' && leb.type != 'icon'">
              <div class="{{leb.class}}" >
                {{item[leb.key] | getListKeyType}}
                
              </div>
            </div>
            <div *ngIf="leb.key == 'cz'">
              <span *ngFor="let l of leb.labels" class="cz">
                <a *ngIf="l.type == 'gotoPage'" [hidden]="l.show&&!l.show(item)">{{l.name }}</a>
                <a *ngIf="l.type == 'click'" [hidden]="l.show&&!l.show(item)" (click)="onClick(l,item)" >{{l.name }}</a>
              </span>
                <!-- <a>取消</a> -->
            </div>
            <div *ngIf="leb.type == 'icon'" nz-row>
                <i nz-icon *ngIf="item[leb.key] == 'Y' || item[leb.key] == true" style="color: green;" type="safety-certificate" theme="outline"></i>
            </div>
          </td>
        </tr>
      </tbody>
    </nz-table>
</div>